package com.example.finaltool.model.db;

import com.baomidou.mybatisplus.annotation.TableName;
import com.example.finaltool.consts.Table;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import java.sql.Date;

/**
 * @author dengbw
 * @date 2021/8/9 3:04 下午
 */
@Getter
@Setter
@NoArgsConstructor
@AllArgsConstructor
@TableName(Table.SYS_CORP_VILLAGE)
public class SysCorpVillage {
    private String tenantId;
    private Long subTenantId;
    private String name;
    private Boolean needSync;
    private Boolean ltFlag;
    private Boolean gbFlag;
    private Integer total;
    private Integer active;
    private String areaId;
    private Date createTime;

    public SysCorpVillage(String tenantId, Long subTenantId, String name, Boolean needSync, Boolean ltFlag, Boolean gbFlag, String areaId) {
        this.tenantId = tenantId;
        this.subTenantId = subTenantId;
        this.name = name;
        this.needSync = needSync;
        this.ltFlag = ltFlag;
        this.gbFlag = gbFlag;
        this.areaId = areaId;
    }

    public SysCorpVillage(String tenantId, Long subTenantId, String name, Boolean needSync, Boolean ltFlag, Boolean gbFlag) {
        this.tenantId = tenantId;
        this.subTenantId = subTenantId;
        this.name = name;
        this.needSync = needSync;
        this.ltFlag = ltFlag;
        this.gbFlag = gbFlag;
    }
}
